﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Presenter.Support;
using Microsoft.SharePoint;
using MS.InformationManagement.Support.Constants;

namespace MS.InformationManagement.Presenter.SolicitudAnulacion
{
    public class SolicitudAnulacionPresenter : BasePresenter<ISolicitudAnulacionView>
    {
        public SolicitudAnulacionPresenter(ISolicitudAnulacionView view) : base(view) { }

        public void RequestIdInterno()
        {

            View.CurrentRadicado = MS.InformationManagement.BLL.SolicitudAnulacion.SolicitudAnulacion.GetRadicado(View.SourceList, View.IdRadicado);
            View.RequestIdInternoSuccess();
        }

        public void UpdateSolicitudAnulacion()
        {
            View.EnviarSolicitudResult = MS.InformationManagement.BLL.SolicitudAnulacion.SolicitudAnulacion.EnviarSolicitud(View.IdRadicado, View.Observaciones, View.SourceList);
            View.EnviarSolicitudSuccess();
        }

        public void GetIDRadicado()
        {
            View.IdRadicado = MS.InformationManagement.BLL.SolicitudAnulacion.SolicitudAnulacion.GetIdRadicado(View.CurrentId, View.SourceList);
            View.GetIdByItemSuccess();
        }
    }
}
